package com.weiz.task;

import com.weiz.config.InitConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component
public class MyTask {
    private static final Logger log = LoggerFactory.getLogger(MyTask.class);
   public void doTask() {
       System.out.println("定时任务正在执行...");
       log.warn("MyTask#定时任务正在执行");
   }
}